#include <vector>
#include <iostream>
using std::cout;
using std::endl;
using std::vector;

void test0(){
    vector<int> nums{1,2,3,4,5};
    vector<int> nums2{3,5,33,4};

    vector<vector<int>> vecs{nums,nums2};

    //遍历
    for(auto & vec : vecs){
        for(auto & ele : vec){
            cout << ele << " ";
        }
        cout << endl;
    }

    cout << "&nums:" << &nums << endl;
    cout << "&nums[0]:" << &nums[0] << endl;
    cout << "&nums2:" << &nums2 << endl;
    cout << "&nums2[0]:" << &nums2[0] << endl;

    cout << "&vecs:" << &vecs << endl;
    cout << "&vecs[0]:" << &vecs[0] << endl;
    cout << "&vecs[1]:" << &vecs[1] << endl;
    cout << &vecs[0][0] << endl;
    cout << &vecs[0][1] << endl;

}

int main(void){
    test0();
    return 0;
}
